package p270jp.pxv.android.advertisement.domain.mapper;

import java.util.List;
import p104de.YufulightResponseDataMapper;
import p104de.YufulightShowResponseMapper;
import p325m0.MutabilityOwnership;
import p392oe.UnSafeYufulightShowResponse;
import p572vg.YufulightAdvertisementWithInterval;

/* compiled from: YufulightShowResponseMapperImpl.kt */
/* renamed from: jp.pxv.android.advertisement.domain.mapper.YufulightShowResponseMapperImpl */
/* loaded from: classes2.dex */
public final class YufulightShowResponseMapperImpl implements YufulightShowResponseMapper {

    /* renamed from: a */
    public final List<YufulightResponseDataMapper> f18784a;

    /* compiled from: YufulightShowResponseMapperImpl.kt */
    /* renamed from: jp.pxv.android.advertisement.domain.mapper.YufulightShowResponseMapperImpl$ConvertAdvertisementException */
    /* loaded from: classes2.dex */
    public static final class ConvertAdvertisementException extends Exception {
    }

    /* JADX WARN: Multi-variable type inference failed */
    public YufulightShowResponseMapperImpl(List<? extends YufulightResponseDataMapper> list) {
        this.f18784a = list;
    }

    @Override // p104de.YufulightShowResponseMapper
    /* renamed from: a */
    public YufulightAdvertisementWithInterval mo4673a(UnSafeYufulightShowResponse mVar) {
        for (YufulightResponseDataMapper cVar : this.f18784a) {
            String f = mVar.m3277f();
            MutabilityOwnership.m3747j(f);
            if (cVar.mo7286b(f)) {
                return cVar.mo7287a(mVar);
            }
        }
        UnSafeYufulightShowResponse c = mVar.m3280c();
        if (c != null) {
            return mo4673a(c);
        }
        throw new ConvertAdvertisementException();
    }
}
